// 成绩

const router = require("koa-router")();
// 引入权限认证中间价 
const { check } = require("../../../middleware/routercheck")
// 引入 成绩 控制器
const { achievementApi } = require("../../../controller/examination/achievement")

router.get("/achievement/byid/:id", check("getachievement"), achievementApi)
router.get("/achievement/list", check("getachievement"), achievementApi)
router.post("/achievement/add", check("createachievement"), achievementApi)
router.put("/achievement/edit/:id", check("editachievement"), achievementApi)
router.delete("/achievement/remove/:id", check("removeachievement"), achievementApi)

module.exports = router